﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="costsQuery.aspx.cs" Inherits="CostsManagement_ClaManagement_costsQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>报销查询</title>
    <link href="../../Includes/index.css" type="text/css" rel="stylesheet" />
    <link href="../../Includes/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../../Includes/xtree.css" type="text/css" rel="stylesheet" />
    
</head>
<script src="../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../../Includes/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../../Includes/MyJScript.js" type="text/javascript"></script>
<body>
    <form id="form1" runat="server">
    <div class="inputbuttondiv">
<asp:Button ID="btnColSec" runat="server" Text="列选" CssClass="inputbutton"    />
<asp:Button ID="btnDetailSec" runat="server" Text="详细查询" CssClass="inputbutton"      />
<asp:Button ID="btnExport" runat="server" Text="导出" CssClass="inputbutton"    />
<asp:Button ID="btnPrint" runat="server" Text="打印" CssClass="inputbutton"     />
</div>
<hr />
<div>

        <table class="item" style="width:70%">
            <tr>
                <td class="tdbg1">
                    单据类型：</td>
                <td>
                    <div style=" height:20px;width:130px; position:relative;border-bottom:0px;">
               <asp:TextBox ID="txtBillType" runat="server" style="position:absolute;left:0px;top:0px;width:110px;bottom:0px;"  CssClass="inputtexttmp"></asp:TextBox>
                <asp:DropDownList ID="ddlBillType" runat="server" Width="130px" AppendDataBoundItems="true" Height="20px"
                onchange="document.getElementById('txtBillType').value=this.options[this.selectedIndex].text" >
                 <asp:ListItem Value="0">-选择-</asp:ListItem>
                 <asp:ListItem Value="0">差旅费报销单</asp:ListItem>
                 <asp:ListItem Value="0">业务招待费报销单</asp:ListItem>
                 <asp:ListItem Value="0">市内交通费报销单</asp:ListItem>
                 <asp:ListItem Value="0">通讯费报销单</asp:ListItem>
                 <asp:ListItem Value="wcsy_costsOtherOrderMst">其他费用报销单</asp:ListItem>
                 </asp:DropDownList>
                 </div></td>
                <td class="tdbg1">
                    申请部门：</td>
                <td>
                    <div style=" height:20px;width:130px; position:relative;border-bottom:0px;">
               <asp:TextBox ID="txtapplyDept" runat="server" style="position:absolute;left:0px;top:0px;width:110px;bottom:0px;"  CssClass="inputtexttmp"></asp:TextBox>
                <asp:DropDownList ID="ddlApplyDept" runat="server" Width="130px" AppendDataBoundItems="true" Height="20px"
                onchange="document.getElementById('txtapplyDept').value=this.options[this.selectedIndex].text" >
                 <asp:ListItem Value="0">-选择-</asp:ListItem>
                 </asp:DropDownList>
                 </div>
                 </td>
                <td class="tdbg1">
                    申请人：</td>
                <td>
                <asp:TextBox ID="txtApplyPsn" runat="server" CssClass="inputtexttmp"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="tdbg1">
                    业务日期：</td>
                <td>
               
                
                <asp:TextBox ID="txtBusinessdateB" runat="server" CssClass="Wdatetmp" 
                        onFocus="WdatePicker({isShowClear:false,readOnly:true})" Width="120px"></asp:TextBox>
               
                
                </td>
                <td class="tdbg1">
                    至</td>
                <td>
                <asp:TextBox ID="txtBusinessdateE" runat="server" CssClass="Wdatetmp" 
                        onFocus="WdatePicker({isShowClear:false,readOnly:true})" Width="120px"></asp:TextBox>
                </td>
                <td class="tdbg1">
                    制单人：</td>
                <td>
                <asp:TextBox ID="txtFillPsn" runat="server" CssClass="inputtexttmp"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="tdbg1">
                    制单日期：</td>
                <td>
                <asp:TextBox ID="txtFilldateB" runat="server" CssClass="Wdatetmp" onFocus="WdatePicker({isShowClear:false,readOnly:true})" Width="120px"></asp:TextBox>
                </td>
                <td >
                    至</td>
                <td>
                <asp:TextBox ID="txtFilldateE" runat="server" CssClass="Wdatetmp" 
                        onFocus="WdatePicker({isShowClear:false,readOnly:true})" Width="120px"></asp:TextBox>
                </td>
                <td class="tdbg1">
                    单据号：</td>
                <td>
                <asp:TextBox ID="txtSysno" runat="server" CssClass="inputtexttmp"></asp:TextBox>
                </td>
                <td>
    <asp:Button ID="btnSec" runat="server" Text="查询" CssClass="inputbuttontb" Height="" onclick="btnSec_Click"     
                         />
                
                </td>
            </tr>
        </table>

</div>
<div class="baseGridViewDiv" style="width:98%;height:500px">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="sysno" onrowdatabound="GridView1_RowDataBound" CssClass="baseGridView" Width="1000px">
            <Columns>
                 <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="orderAllCheckBox" runat="server" text="全选"
                        onclick="checkall(this)"/>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="orderCheckBox" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1 %>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                 <asp:BoundField DataField="sysno" HeaderText="单据号" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="业务日期" DataField="businessdate" 
                     DataFormatString="{0:yyyy-MM-dd}" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                 <asp:TemplateField HeaderText="申请部门">
                     <ItemTemplate>
                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("deptname") %>'></asp:Label>
                     </ItemTemplate>
                     <HeaderStyle HorizontalAlign="Left" />
                     <ItemStyle HorizontalAlign="Left" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="申请人">
                     <ItemTemplate>
                         <asp:Label ID="Label2" runat="server" Text='<%# Bind("empname") %>'></asp:Label>
                     </ItemTemplate>
                    
                     <HeaderStyle HorizontalAlign="Left" />
                     <ItemStyle HorizontalAlign="Left" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="费用金额">
                     <ItemTemplate>
                         <asp:Label ID="Label3" runat="server" Text='<%# Bind("locsum") %>'></asp:Label>
                     </ItemTemplate>
                     
                     <HeaderStyle HorizontalAlign="Left" />
                     <ItemStyle HorizontalAlign="Left" />
                 </asp:TemplateField>
                <asp:BoundField HeaderText="借款金额" DataField="loanMoney" >
                 </asp:BoundField>
                 <asp:BoundField HeaderText="支付金额" DataField="payMoney" >
                 </asp:BoundField>
                <asp:BoundField HeaderText="制单人" DataField="fillpsn" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="制单日期" DataField="filldate" 
                     DataFormatString="{0:yyyy-MM-dd}" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                 <asp:BoundField DataField="auditPsn" HeaderText="审核人" />
                 <asp:BoundField DataField="auditDate" DataFormatString="{0:yyyy-MM-dd}" 
                     HeaderText="审核日期" />
                <asp:BoundField HeaderText="备 注" DataField="remarks" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="提交人" DataField="authorpsn" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="提交日期" DataField="authorDate" 
                     DataFormatString="{0:yyyy-MM-dd}" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="审批人" DataField="approvPsn" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
                <asp:BoundField HeaderText="审批日期" DataField="approvDate" 
                     DataFormatString="{0:yyyy-MM-dd}" >
                 <HeaderStyle HorizontalAlign="Left" />
                 <ItemStyle HorizontalAlign="Left" />
                 </asp:BoundField>
            </Columns>
        </asp:GridView>
        </div>
    </form>
</body>
</html>
